#include<bits/stdc++.h>
using namespace std;
int n,a[100010],ans,cnt1,cnt2;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    ans=n;
    for(int i=1;i<=n;i++){
        cin>>a[i];
    }
    sort(a+1,a+1+n);
    int i=1;
    while(i!=n+1){
        while(a[i]==a[i+1]){
            cnt2++;
            i++;
        }
        cnt2++;
        i++;
        ans-=min(cnt2,cnt1);
        cnt1=cnt1-min(cnt2,cnt1)+cnt2;
        cnt2=0;
    }
    cout<<ans<<endl;
    return 0;
}
